package com.mysoft.gfyx.marketdevelop.controller;

import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.controller.dto.GetDataByCreditCodeDto;
import com.mysoft.gfyx.marketdevelop.controller.dto.inspect.ApplyRankRequestDto;
import com.mysoft.gfyx.marketdevelop.service.ReportService;
import com.mysoft.gfyx.marketdevelop.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@PubService(value = "/supplierPub", prefix = RequestPrefix.PUB)
public class SupplierPubController {
    @Autowired
    private SupplierService supplierService;

    @PubAction(value = "/getSupplierMainData", method = RequestMethod.POST)
    public Object getSupplierMainData(@RequestBody GetDataByCreditCodeDto dto) {
        return supplierService.getSupplierMainData(dto.getOrganizing_code());
    }
}
